package com.ddpt.platform.common.dto;

import com.ddpt.platform.common.base.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class IdDto extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "参数id缺失")
    private Long id;

    public static IdDto builder(long id){
        IdDto dto = new IdDto();
        dto.setId(id);
        return dto;
    }
}
